package com.sample.kokou;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;

public class EditPerson implements OnItemClickListener {
	private Activity act;
	
	public EditPerson(Activity act) {
		this.act = act;
	}

	@Override
	public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
		Intent i = new Intent(act, PersonActivity.class);
		i.putExtra("action", "edit");
		i.putExtra("id", id);
		act.startActivity(i);
	}

}
